home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Magazin: Amiga-CD 1996 September & October
/
Amiga-CD 1996 #9-10.iso
/
ausgabe_9_96
/
kommunikation
/
mm_030
/
rexx
/
mm_editmsgflags.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-04-29
|
580b
|
39 lines
/*
** Example script for MM_ReadMsg and MM_EditMsgFlags commands
*/
address 'MAILMANAGER'
drop FLAGSTRING
MM_ReadMsg 'MATRIX' 854 MSG
if RC=0 then do
say
say
say 'From:' MSG.FROM MSG.FROMADDR
say 'To: ' MSG.TO MSG.TOADDR
say 'Subj:' MSG.SUBJ
say 'Date:' MSG.DATE
say 'Flags:' MSG.FLAGS
say
end
FLAGSTRING = "!SENT"
MM_EditMsgFlags 'MATRIX' 854 'FLAGSTRING'
say RC
MM_ReadMsg 'MATRIX' 854 MSG
if RC=0 then do
say
say
say 'From:' MSG.FROM MSG.FROMADDR
say 'To: ' MSG.TO MSG.TOADDR
say 'Subj:' MSG.SUBJ
say 'Date:' MSG.DATE
say 'Flags:' MSG.FLAGS
say
end